<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="my" uri="http://www.abc.edu.cn/aaa/bbb"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录界面</title>
<link rel="stylesheet" type="text/css" href="css/default0.css">
<script type="text/javascript">
	function getPass() {
		location.href = "getPass.jsp";
	}
	function register() {
		location.href = "register.jsp";
	}
</script>
<style type="text/css">


/* 表格 */
.tab {
	margin: 10px auto;
	width: 400px;
}

.tab td {
	text-align: left;
	border-bottom: 1px dashed gray;
	padding: 3px;
	white-space: nowrap;
}

.tab a {
	text-decoration: none;
	color: #FF0000;
}

.tab a:hover {
	color: #CC6633;
}

.login1 {
	text-align:center;
	right:0px;
	padding: 20px;
}
.input{
	line-height:10px;
	margin-top: 10px;
	border-radius: 8px;
}
.input1{
	border-radius:3px;
	width: 60px;
	height: 23px;
}
</style>
</head>
<body>
	<div class="all">
		<div class="logo">
		<div class="font">读者留言系统首界面</div>
			<div class="login1">
				<form action="UserServlet" method="post">
				<div class="msg">${requestScope.msg }</div>
					ID名 <input type="text" name="n" size="12" class="input"><br> 密码 <input
						type="password" name="p" size="12" class="input"><br> 权限 <select
						name="permission"  class="input">
						<option value="读者" size="12">读者</option>
						<option value="作者" size="12">作者</option>
					</select><br><br>

					<div>
						<input type="hidden" name="k" value="yhdl"> <input
							type="submit" value="登录" class="input1">&nbsp; <input type="button" value="注册"
							onclick="register();" class="input1"> &nbsp;<input type="button" value="重置密码"
							onclick="getPass();" class="input1">
					</div>
				</form>
			</div>
		</div>
		<div class="main">
			<table class="tab">
				<c:forEach items="${l }" var="s">
					<tr>
						<td><img src="imgs/item1.gif"> <a
							href="NewsServlet?k=xxxx&id=${s.id }">${s.title }</a></td>
						<td>${my:longToDateString(s.t) }</a>
						</td>
					</tr>
				</c:forEach>
			</table>
		</div>
		<div class="footer"></div>
	</div>
</body>
</html>